package kr.co.hanbit;

public class StringEx5 {
public static void main(String[] args) {
	/*String s1 = "Kw So Ae";
	int index = s1.indexOf('w');
	System.out.println(index+1);
	
	index = s1.indexOf("So");
	System.out.println(index+1);
	
	index = s1.lastIndexOf('o');
	System.out.println(index+1);
	
	char c = s1.charAt(index);
	System.out.println(c);
	
	index = s1.indexOf('S');
	String str = s1.substring(index);
	System.out.println(str);
	str = s1.substring(index, index+4);
	System.out.println(str);
	int length = s1.length();
	System.out.println(length);
	String[] arr = s1.split(" ");
	
	for(int i = 0; i < arr.length; i++)
		System.out.println(i+ " : "+arr[i]);
	*/
	String titleContent = "qlkwjhne|qlwkhen";
	int index1 = titleContent.indexOf("|");
	String title = titleContent.substring(0, index1);
	String content = titleContent.substring(index1+1);
	
	System.out.println(index1);
	System.out.println(title);
	System.out.println(content);
	
	
}
}
